﻿using StartsEAS_API.Model;
using StartsEAS_API.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StartsEAS_API.DAL.AlterClassD
{
    public class AlterClassDAL
    {
        private readonly StarsEASContext _context;
        public AlterClassDAL(StarsEASContext context) {
            _context = context; 
        }

        /// <summary>
        /// 获取所有的调课申请
        /// </summary>
        /// <returns></returns>
        public ResultUtils GetAllAlterClass() { 
            List<AlterClass> alterClassList = _context.AlterClasses.ToList();
            return new ResultUtils() { code = 200, message = alterClassList };
        }
    }
}
